package edu.mju.eduStatistics.client;

import edu.mju.commonutils.ReturnCode;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 调用service_user模块
 * @Author: wyp
 * @Date: 2020/11/14 16:36
 */
@Component
@FeignClient("service-user")
public interface UserClient {
    /**
     * 远程调用service_user模块的countRegister（）方法
    * @param day 日期
     * @return 返回json格式
     */
    @GetMapping("/eduUser/study-member/countRegister/{day}")
    public ReturnCode countRegister(@PathVariable("day") String day);
}
